package com.xiaoshuidi.cloud.module.rooms.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xiaoshuidi.cloud.framework.tenant.core.db.TenantBaseDO;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 公寓预定退定明细
 * </p>
 *
 * @author Joey
 * @since 2024-01-08
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("room_reserve_withdrawal_detail")
public class RoomReserveWithdrawalDetail extends TenantBaseDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 预定单id
     */
    private Long reserveId;

    /**
     * 费用类别
     */
    private String feeType;

    /**
     * 费用名称
     */
    private String feeName;

    /**
     * 金额
     */
    private BigDecimal totalAmount;

    /**
     * 实际金额
     */
    private BigDecimal actualAmount;

    /**
     * 资金流向 0 流入 | 1 流出
     */
    private Integer flowType;

}
